#!/bin/bash

TOP_DIR=$(cd $(dirname "$0") && pwd)

cp ${TOP_DIR}/python-httpserver /usr/local/bin/python-httpserver
cp ${TOP_DIR}/python-httpserver.service /usr/lib/systemd/system/python-httpserver.service

systemctl daemon-reload
systemctl start  python-httpserver.service
systemctl enable python-httpserver.service
systemctl status python-httpserver.service
